package com.kotlinvben.repository

import com.kotlinvben.entity.Role
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.repository.JpaSpecificationExecutor
import org.springframework.stereotype.Repository

@Repository
interface RoleRepository : JpaRepository<Role, Long>, JpaSpecificationExecutor<Role> {
    fun findByName(name: String): Role?
    fun existsByName(name: String): Boolean
} 